package com.maiworld.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.maiworld.pojo.News;


public interface NewsMapper {
	
    int insert(News news);
    
    int deleteByIdArray(Long[] idArray);
    
    int updateNews(News news);
    
    List<News> selectByClassId(@Param(value="classId") Long classId,@Param(value="status") String status);
    
    List<News> selectByClassIdAndLimit(
    		@Param(value="classId") Long classId,
    		@Param(value="status") String status,
    		@Param(value="start") int start,
    		@Param(value="pageSize") int pageSize);
    
    News selectArticleById(@Param(value="id") Long id,@Param(value="status") String status);
    
}
